PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Waveform / Wire Tangle / EVET - 3D Gravity Waves.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=4 |
| 13 | bAdditiveWaves=0 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=0 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=1.059 |
| 26 | fWaveScale=1.821 |
| 27 | fWaveSmoothing=0.000 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.910 |
| 30 | fModWaveAlphaEnd=1.300 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=1.000 |
| 45 | wave_g=0.940 |
| 46 | wave_b=0.970 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.490 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=5.000 |
| 64 | mv_r=1.000 |
| 65 | mv_g=1.000 |
| 66 | mv_b=1.000 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=1.00000 |
| 83 | wavecode_0_smoothing=0.50000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wavecode_1_enabled=0 |
| 89 | wavecode_1_samples=512 |
| 90 | wavecode_1_sep=0 |
| 91 | wavecode_1_bSpectrum=0 |
| 92 | wavecode_1_bUseDots=0 |
| 93 | wavecode_1_bDrawThick=0 |
| 94 | wavecode_1_bAdditive=0 |
| 95 | wavecode_1_scaling=1.00000 |
| 96 | wavecode_1_smoothing=0.50000 |
| 97 | wavecode_1_r=1.000 |
| 98 | wavecode_1_g=1.000 |
| 99 | wavecode_1_b=1.000 |
| 100 | wavecode_1_a=1.000 |
| 101 | wavecode_2_enabled=0 |
| 102 | wavecode_2_samples=512 |
| 103 | wavecode_2_sep=0 |
| 104 | wavecode_2_bSpectrum=0 |
| 105 | wavecode_2_bUseDots=0 |
| 106 | wavecode_2_bDrawThick=0 |
| 107 | wavecode_2_bAdditive=0 |
| 108 | wavecode_2_scaling=1.00000 |
| 109 | wavecode_2_smoothing=0.50000 |
| 110 | wavecode_2_r=1.000 |
| 111 | wavecode_2_g=1.000 |
| 112 | wavecode_2_b=1.000 |
| 113 | wavecode_2_a=1.000 |
| 114 | wavecode_3_enabled=0 |
| 115 | wavecode_3_samples=512 |
| 116 | wavecode_3_sep=0 |
| 117 | wavecode_3_bSpectrum=0 |
| 118 | wavecode_3_bUseDots=0 |
| 119 | wavecode_3_bDrawThick=0 |
| 120 | wavecode_3_bAdditive=0 |
| 121 | wavecode_3_scaling=1.00000 |
| 122 | wavecode_3_smoothing=0.50000 |
| 123 | wavecode_3_r=1.000 |
| 124 | wavecode_3_g=1.000 |
| 125 | wavecode_3_b=1.000 |
| 126 | wavecode_3_a=1.000 |
| 127 | shapecode_0_enabled=1 |
| 128 | shapecode_0_sides=4 |
| 129 | shapecode_0_additive=0 |
| 130 | shapecode_0_thickOutline=0 |
| 131 | shapecode_0_textured=1 |
| 132 | shapecode_0_num_inst=1 |
| 133 | shapecode_0_x=0.500 |
| 134 | shapecode_0_y=0.500 |
| 135 | shapecode_0_rad=2.12158 |
| 136 | shapecode_0_ang=0.00000 |
| 137 | shapecode_0_tex_ang=0.06283 |
| 138 | shapecode_0_tex_zoom=0.46943 |
| 139 | shapecode_0_r=1.000 |
| 140 | shapecode_0_g=1.000 |
| 141 | shapecode_0_b=1.000 |
| 142 | shapecode_0_a=1.000 |
| 143 | shapecode_0_r2=0.990 |
| 144 | shapecode_0_g2=1.000 |
| 145 | shapecode_0_b2=1.000 |
| 146 | shapecode_0_a2=0.000 |
| 147 | shapecode_0_border_r=1.000 |
| 148 | shapecode_0_border_g=1.000 |
| 149 | shapecode_0_border_b=1.000 |
| 150 | shapecode_0_border_a=0.100 |
| 151 | shapecode_1_enabled=0 |
| 152 | shapecode_1_sides=4 |
| 153 | shapecode_1_additive=0 |
| 154 | shapecode_1_thickOutline=0 |
| 155 | shapecode_1_textured=0 |
| 156 | shapecode_1_num_inst=1 |
| 157 | shapecode_1_x=0.500 |
| 158 | shapecode_1_y=0.500 |
| 159 | shapecode_1_rad=0.10000 |
| 160 | shapecode_1_ang=0.00000 |
| 161 | shapecode_1_tex_ang=0.00000 |
| 162 | shapecode_1_tex_zoom=1.00000 |
| 163 | shapecode_1_r=1.000 |
| 164 | shapecode_1_g=0.000 |
| 165 | shapecode_1_b=0.000 |
| 166 | shapecode_1_a=1.000 |
| 167 | shapecode_1_r2=0.000 |
| 168 | shapecode_1_g2=1.000 |
| 169 | shapecode_1_b2=0.000 |
| 170 | shapecode_1_a2=0.000 |
| 171 | shapecode_1_border_r=1.000 |
| 172 | shapecode_1_border_g=1.000 |
| 173 | shapecode_1_border_b=1.000 |
| 174 | shapecode_1_border_a=0.100 |
| 175 | shapecode_2_enabled=0 |
| 176 | shapecode_2_sides=4 |
| 177 | shapecode_2_additive=0 |
| 178 | shapecode_2_thickOutline=0 |
| 179 | shapecode_2_textured=0 |
| 180 | shapecode_2_num_inst=1 |
| 181 | shapecode_2_x=0.500 |
| 182 | shapecode_2_y=0.500 |
| 183 | shapecode_2_rad=0.10000 |
| 184 | shapecode_2_ang=0.00000 |
| 185 | shapecode_2_tex_ang=0.00000 |
| 186 | shapecode_2_tex_zoom=1.00000 |
| 187 | shapecode_2_r=1.000 |
| 188 | shapecode_2_g=0.000 |
| 189 | shapecode_2_b=0.000 |
| 190 | shapecode_2_a=1.000 |
| 191 | shapecode_2_r2=0.000 |
| 192 | shapecode_2_g2=1.000 |
| 193 | shapecode_2_b2=0.000 |
| 194 | shapecode_2_a2=0.000 |
| 195 | shapecode_2_border_r=1.000 |
| 196 | shapecode_2_border_g=1.000 |
| 197 | shapecode_2_border_b=1.000 |
| 198 | shapecode_2_border_a=0.100 |
| 199 | shapecode_3_enabled=0 |
| 200 | shapecode_3_sides=4 |
| 201 | shapecode_3_additive=0 |
| 202 | shapecode_3_thickOutline=0 |
| 203 | shapecode_3_textured=0 |
| 204 | shapecode_3_num_inst=1 |
| 205 | shapecode_3_x=0.500 |
| 206 | shapecode_3_y=0.500 |
| 207 | shapecode_3_rad=0.10000 |
| 208 | shapecode_3_ang=0.00000 |
| 209 | shapecode_3_tex_ang=0.00000 |
| 210 | shapecode_3_tex_zoom=1.00000 |
| 211 | shapecode_3_r=1.000 |
| 212 | shapecode_3_g=0.000 |
| 213 | shapecode_3_b=0.000 |
| 214 | shapecode_3_a=1.000 |
| 215 | shapecode_3_r2=0.000 |
| 216 | shapecode_3_g2=1.000 |
| 217 | shapecode_3_b2=0.000 |
| 218 | shapecode_3_a2=0.000 |
| 219 | shapecode_3_border_r=1.000 |
| 220 | shapecode_3_border_g=1.000 |
| 221 | shapecode_3_border_b=1.000 |
| 222 | shapecode_3_border_a=0.100 |
| 223 | per_frame_init_1=avg = 1; |
| 224 | per_frame_init_2=index = int(rand(8)); |
| 225 | per_frame_init_3=index2 = int(rand(8)); |
| 226 | per_frame_init_4=ran = 1; |
| 227 | per_frame_init_5=spb_=.3; |
| 228 | per_frame_init_6=sdev = .1; |
| 229 | per_frame_init_7=trel2 = rand (100)/100; |
| 230 | per_frame_1=dec_med = pow (0.9, 30/fps); dec_slow = pow (0.98, 30/fps); |
| 231 | per_frame_2=beat = bass+mid+treb; |
| 232 | per_frame_3=avg = avg*dec_slow + beat*(1-dec_slow); |
| 233 | per_frame_4=is_beat = above(beat, .2+avg+peak) * above (time, t0+.1); |
| 234 | per_frame_5=t0 = is_beat*time + (1-is_beat)*t0; |
| 235 | per_frame_6=peak = is_beat * beat + (1-is_beat)*peak*dec_med; |
| 236 | per_frame_7=index = (index + is_beat) %16; |
| 237 | per_frame_8=index2 = (index2 + is_beat*bnot(index))%12; |
| 238 | per_frame_9= |
| 239 | per_frame_10=spb = min(t0-t0a + .01,2); t0a = t0; |
| 240 | per_frame_11=spb_ = if(is_beat,spb_ *.9 +.1*spb, spb_); |
| 241 | per_frame_12=mindev = min(min(abs(spb-spb_),abs(spb*2-spb_)),abs(spb-spb_*2)); |
| 242 | per_frame_13=sdev = if(is_beat,sdev * .9 + .1*pow(mindev+.02,2),sdev); |
| 243 | per_frame_14= |
| 244 | per_frame_15=q20 = avg; q21 = beat; |
| 245 | per_frame_16=q22 = peak+.1; |
| 246 | per_frame_17=q24 = is_beat; |
| 247 | per_frame_18=q27 = index; q28 = index2; |
| 248 | per_frame_19= |
| 249 | per_frame_20=trel = trel + 1/fps/spb_*4; itrel = int(trel); |
| 250 | per_frame_21=q25 = above(itrel, itrel_); |
| 251 | per_frame_22=q30 = itrel%2; |
| 252 | per_frame_23=itrel_ = itrel; |
| 253 | per_frame_24=q31 = trel/8-int(trel/8); |
| 254 | per_frame_25= |
| 255 | per_frame_26=ma = ma + peak/fps ; |
| 256 | per_frame_27=mx=mx*dec_med+(1-dec_med)*cos(ma); |
| 257 | per_frame_28=my=my*dec_med+(1-dec_med)*sin(ma+trel/16); |
| 258 | per_frame_29=q15 = mx ; q16 = my ; q17 = ma; |
| 259 | per_frame_30= |
| 260 | per_frame_31=//first par: off; second: on |
| 261 | per_frame_32=sw1 = if(sw1,bnot(q24*bnot(int(rand(10)))),q24*bnot(int(rand(20)))); |
| 262 | per_frame_33=sw2 = if(sw2,bnot(q24*bnot(int(rand(40)))),q24*bnot(int(rand(80)))); |
| 263 | per_frame_34=sw3 = if(sw3,bnot(q24*bnot(int(rand(10)))),q24*bnot(int(rand(100+10000*sdev)))); |
| 264 | per_frame_35= |
| 265 | per_frame_36=//********* variation parameters warp shader |
| 266 | per_frame_37=q6 = sin(time/15)*sin(time/27)*.1; //zz weighting |
| 267 | per_frame_38=q10 = sin(time/8); //ring |
| 268 | per_frame_39=q10 = q10*q10*.1; |
| 269 | per_frame_40=q11 = 1.5+sin(time/7.8); //zoom uv2 |
| 270 | per_frame_41=q12 = if(below(sdev,.02)*bnot(q8),q25,1); //go |
| 271 | per_frame_42=q13 = .5+sin(time/17); //pow noise |
| 272 | per_frame_43=q19 = sin(time/5.3)*.4; //sunpos |
| 273 | per_frame_44= |
| 274 | per_frame_45=//********* variation parameters comp shader |
| 275 | per_frame_46=q3 = sw1;//mirror |
| 276 | per_frame_47=q4 = .02/sdev; //unused ### |
| 277 | per_frame_48=q5 = max(min(4*sin(trel/64)-3,1),0)*.4; //water |
| 278 | per_frame_49=q7 = below(sdev,.004)*(index2%2); //flash |
| 279 | per_frame_50=q2 = abs(q19)*sqrt(q15*q15+q16*q16); //avoid black - frame eq2 |
| 280 | per_frame_51= |
| 281 | per_frame_52=trel2 = trel2+.003*q22*q22/fps; |
| 282 | per_frame_53=tmp = sin(trel2); |
| 283 | per_frame_54=tmp = 20*tmp-19; |
| 284 | per_frame_55=q8 = tmp*above(tmp,0)*(4/max(q22-4,0.2)+4); // dyn zoom |
| 285 | per_frame_56=q26 = above(q22,16)*(q22-16)*2; //# ok??? |
| 286 | per_frame_57= |
| 287 | per_frame_58=tmp = index2/6; |
| 288 | per_frame_59=q14 = abs((tmp-int(tmp))-.5)*6+1; //ang multi #### |
| 289 | per_frame_60= |
| 290 | per_frame_61=tmp =sin(trel/4*3.14); //sym rot |
| 291 | per_frame_62=jmp = jmp + above(tmp,.5)*tmp/fps*8*sw2; |
| 292 | per_frame_63=q9 = jmp*equal(q14,1)*below(sdev,0.04)+time*above(sin(q17/23),.9); |
| 293 | per_frame_64=q18 = tmp*tmp/2 * bnot(q8) * sw3; //waber |
| 294 | per_frame_65= |
| 295 | per_frame_66=monitor = avg; |
| 296 | per_frame_67=rot = .003; |
| 297 | per_frame_68=warp = .1; |
| 298 | per_frame_69=zoom = 1+(avg-log(sdev))/200+min(q26,1); |
| 299 | per_frame_70=//dx = tmp*.01*above(abs(tmp),.95); |
| 300 | warp_1=`static const float quality = 4, depth = 3.5; |
| 301 | warp_2=`float3 rsl, rsl2, rss, ret1,screen3,cloud; |
| 302 | warp_3=`float2 uv0, uv1, uv2; |
| 303 | warp_4=`float tmp, lprof,lprof2,sprof,sprof2, n, stone,stone_lit,sun,sky; |
| 304 | warp_5=`float hormask, lavmask,ilavmask,cldmask,ncloud; |
| 305 | warp_6=`static float lav_gnd = 0,hordist = 8, tele = 1; |
| 306 | warp_7=`static float2 mov = float2 (q5,q6); |
| 307 | warp_8=` |
| 308 | warp_9=`float hq_n (float3 uvi) {return lum(tex2D (sampler_noise_hq ,uvi.xy));} |
| 309 | warp_10=`float noise2 (float3 uvi) {return tex2D (sampler_noise_lq,uvi*8);} |
| 310 | warp_11=` |
| 311 | warp_12=`float noise4 (float2 uvi) { float n1,n2,n3,n4,zv; zv = 0.006*time; |
| 312 | warp_13=` n1 = lum(tex2D(sampler_noise_hq, (uvi))); |
| 313 | warp_14=` n2 = lum(tex2D(sampler_noise_hq, (uvi*2+zv))); |
| 314 | warp_15=` n3 = lum(tex2D(sampler_noise_hq, (uvi*4+zv))); |
| 315 | warp_16=` n4 = lum(tex2D(sampler_noise_hq, (uvi*8+4*zv))); |
| 316 | warp_17=` return n1 + n2/2 + n3/4 + n4/8;} |
| 317 | warp_18=` |
| 318 | warp_19=`float noise3 (float3 uvi) {float arg; |
| 319 | warp_20=`return clamp(tex2D (sampler_noise_hq,uvi.xy/16)-.5,-.25,.25)*2 |
| 320 | warp_21=` +(tex2D (sampler_noise_hq,uvi.xy/8)-.5)/4 |
| 321 | warp_22=` +(tex2D (sampler_noise_hq,(uvi.x-sin(uvi.y*2))/2))/12;} |
| 322 | warp_23=` |
| 323 | warp_24=`float3 rs_lav (float2 uvi, float berg) { float z; float2 rs; |
| 324 | warp_25=` z = 8/(uvi.y)*(q8-4*berg); z = clamp(z,-8,80*hordist); //#final check ! |
| 325 | warp_26=` rs.x = uvi.x*z ; rs.y = z; |
| 326 | warp_27=` rs = mul(rs,float2x2(q3,q4,-q4,q3)); |
| 327 | warp_28=` return float3(rs/64 + mov,z); } |
| 328 | warp_29=` |
| 329 | warp_30=`float3 rs_sky (float2 uvi, float berg) { float z; float2 rs; |
| 330 | warp_31=` z = 8/(uvi.y - berg-.5); z = clamp(z,-32,1); |
| 331 | warp_32=` rs.x = (uvi.x)*z ; rs.y = z; |
| 332 | warp_33=` rs = mul(rs,float2x2(q3,q4,-q4,q3)); |
| 333 | warp_34=` return float3(-rs/64+mov/-128,z); } |
| 334 | warp_35=` |
| 335 | warp_36=`shader_body { |
| 336 | warp_37=`uv1 = uv*aspect.xy-float2(.5,q7); |
| 337 | warp_38=`uv1 = mul(uv1,float2x2(q1,q2,-q2,q1)); |
| 338 | warp_39=`screen3 = float3 (float2(uv.x*2-1,uv.y-.5)*aspect.yx,1); |
| 339 | warp_40=` |
| 340 | warp_41=`//CLOUDS |
| 341 | warp_42=`uv2 = rs_sky(uv1,0);tmp = 0; |
| 342 | warp_43=`for (int n = 1; n <= 3; n++) { |
| 343 | warp_44=` uv2 = rs_sky(uv1,tmp*.03); |
| 344 | warp_45=` tmp = saturate(lum(tex2D (sampler_noise_hq,uv2 +.03*noise4(uv2*2))-.5));} |
| 345 | warp_46=`tmp = saturate(pow(tmp,1.4) * sign(tmp)); |
| 346 | warp_47=`cloud = tmp; |
| 347 | warp_48=`ncloud = saturate(1-tmp); |
| 348 | warp_49=` |
| 349 | warp_50=`//DUNES |
| 350 | warp_51=`for (n=1; n <= quality; n++) { |
| 351 | warp_52=` rsl = rs_lav(tele*uv1,lav_gnd); //#spiele an uv-Vorfakt - zoom, auch bei sky ! |
| 352 | warp_53=` lprof = noise3(rsl); |
| 353 | warp_54=` lav_gnd -= lprof/quality*depth/sqrt(rsl.z); } |
| 354 | warp_55=`rsl = rs_lav(tele*uv1,lav_gnd); |
| 355 | warp_56=`stone = noise2(rsl); |
| 356 | warp_57=` |
| 357 | warp_58=`float3 rsl3 = rsl + float3(-.1,.0,0); |
| 358 | warp_59=`lprof2 = noise3(rsl3); |
| 359 | warp_60=`stone_lit = .3+4*saturate(.2+lprof-lprof2); |
| 360 | warp_61=` |
| 361 | warp_62=`//------------------- masking ----------------------------------------- |
| 362 | warp_63=`lavmask = saturate (4*hordist-rsl.z/18) * (rsl.z >= 0); // # ! |
| 363 | warp_64=`ilavmask = saturate(1-lavmask); |
| 364 | warp_65=` |
| 365 | warp_66=`//---------------- skylight first----------------- |
| 366 | warp_67=`ret1 = ncloud*uv.y*float3 (.3,.4,1); |
| 367 | warp_68=`ret1 += cloud*2; |
| 368 | warp_69=`ret1 *= ilavmask; |
| 369 | warp_70=` |
| 370 | warp_71=`//----------------lava / stone ----------------- |
| 371 | warp_72=`ret1 += stone *stone_lit*lavmask * float3(1,.4,.0); |
| 372 | warp_73=` |
| 373 | warp_74=` |
| 374 | warp_75=`ret = 1-exp(-ret1*2+.1+.1*sin(time/7)); |
| 375 | warp_76=` |
| 376 | warp_77=`float4 noise9 = tex3D(sampler_noisevol_hq, |
| 377 | warp_78=` ((float3(uv1.y-uv2.x,uv2.x+uv1.x,uv.x*uv.y)*q27 |
| 378 | warp_79=` )*texsize.xyy*texsize_noisevol_hq.zww |
| 379 | warp_80=` ).xyz* |
| 380 | warp_81=` float3(1,1,0)*0.05 + |
| 381 | warp_82=` time*float3(0,0,1)*q29 |
| 382 | warp_83=` ); |
| 383 | warp_84=`if(ret.x> q21*roam_cos.y && ret.x<= q24*roam_sin.x)ret.y -= (noise9).x*.5; |
| 384 | warp_85=`if(ret.y> q22*roam_sin.x && ret.y<= q25*roam_cos.x)ret.z -= (noise9).y*.5; |
| 385 | warp_86=`if(ret.z> q23*roam_cos.x && ret.z<= q26*roam_sin.y)ret.x -= (noise9).z*.5; |
| 386 | warp_87=`} |
| 387 | warp_88=` |
| 388 | warp_89=`written by martin |
| 389 | warp_90=`END |
| 390 | comp_1=`float3 ret1, neu; |
| 391 | comp_2=`float2 rs,rs2,uv1; |
| 392 | comp_3=`shader_body |
| 393 | comp_4=`{ |
| 394 | comp_5=`float2 uv2; |
| 395 | comp_6=`float ang2, c, s; |
| 396 | comp_7=`uv -= 0.5; |
| 397 | comp_8=`uv *= aspect.xy; |
| 398 | comp_9=` |
| 399 | comp_10=`float dist = 1; |
| 400 | comp_11=`float inten = 1; |
| 401 | comp_12=`float mask = 0; |
| 402 | comp_13=`ret1 = 0; |
| 403 | comp_14=`int anz = 3; |
| 404 | comp_15=`float n = 0; |
| 405 | comp_16=`while (n <= anz) { |
| 406 | comp_17=` ang2 = 6.28*n/anz; |
| 407 | comp_18=` c = cos(ang2); |
| 408 | comp_19=` s = sin(ang2); |
| 409 | comp_20=` uv2.x = uv.x*c - uv.y*s; |
| 410 | comp_21=` uv2.y = uv.x*s + uv.y*c; |
| 411 | comp_22=` |
| 412 | comp_23=` dist = 1-frac(1.0/anz*n+time/2); //evtl sqrt ! |
| 413 | comp_24=` |
| 414 | comp_25=` inten = sqrt(dist)*(1-dist)*8; |
| 415 | comp_26=`float2 uv3 = frac(3*uv2*dist + 0.5+float2(q1,q2)*.05); |
| 416 | comp_27=` neu = 1*GetPixel(uv3) -GetBlur1(uv3+.003); |
| 417 | comp_28=` ret1 = max(ret1,neu*inten); |
| 418 | comp_29=`n++; |
| 419 | comp_30=`} |
| 420 | comp_31=` |
| 421 | comp_32=`rs2 = .5*cos(uv*13) - ret1;; |
| 422 | comp_33=`float dots = saturate(.05/length(rs2)) ; |
| 423 | comp_34=` |
| 424 | comp_35=` |
| 425 | comp_36=`ret = 2*ret1.gbr + 21*dots*(.1+3*ret1) ; |
| 426 | comp_37=`ret = ret1*4; |
| 427 | comp_38=`} |